package com.guoyh.bilbase.pop.pop

import android.content.Context
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.lxj.xpopup.impl.FullScreenPopupView

/**
 * @auther      guoyh
 * @Date  6/1/21 12:01 PM
 * @Describe    全屏弹窗
 */
abstract class BaseFullPop<DB : ViewDataBinding>(context: Context) : FullScreenPopupView(context) {

    lateinit var mDataBind: DB

    override fun getImplLayoutId(): Int {
        return getImplLayout()
    }


    override fun onCreate() {
        super.onCreate()
        mDataBind = DataBindingUtil.bind(popupImplView)!!
        onViewCreate()
    }

    abstract fun getImplLayout(): Int
    abstract fun onViewCreate()

}
